package com.spider.moudle.api.realize;

import com.spider.moudle.api.Writer;
import com.spider.moudle.pool.CrawlerPool;
import com.spider.moudle.pool.TaskQueryPool;
import com.spider.moudle.pool.WriterPool;
import com.spider.moudle.util.PropertiesUtil;

/**
 * Created by Linbo Hu on 2017/12/18.
 * 一个标准的工作者
 */
public abstract class AbstractWorker implements Runnable{

    protected WriterPool writerPool = WriterPool.getInstance();

    protected TaskQueryPool queryPool = TaskQueryPool.getInstance();

    protected CrawlerPool crawlerPool = CrawlerPool.getInstance();

    protected StandardLogRecorder standardLogRecorder = StandardLogRecorder.getInstance();

    protected String dataWriteWay = PropertiesUtil.getVal("data.write.way");

}
